<% form_for(:user, :url => user_path(@user), :html => {:method => :put}) do |f| -%>
<p>Change password for: <b><%= @user.login %> </b></p>

<p><label for="password">New password</label><br/>
<%= f.password_field :password %></p>

<p><label for="password_confirmation">Confirm Password</label><br/>
<%= f.password_field :password_confirmation %></p>

<p><label for="admin">Admin</label><br/>
<%= f.check_box :admin %></p>

<p><%= submit_tag 'Update account' %></p>
<% end -%>

